package com.cai.oamanager.dao;

import com.cai.oamanager.entity.People;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @version 1.0
 * @author：蔡松坡
 * @date：2021/1/16 10 : 10
 * @package：com.cai.oamanager.dao
 */
@Mapper
public interface UserDao {

    People login(@Param("people") People people);

    List<People> allPeople(@Param("tname") String tname,@Param("start") Integer start,@Param("size") Integer size);

    void addPeople(@Param("people") People people);

    int getTeacherCount(@Param("tname") String tname);

    int getTeacherCountByLike(@Param("tname") String tname);

    void delete(@Param("id") String id);

    void updateSelf(@Param("people") People people);

    List<People> getTeacherName(@Param("oid") String oid);

//    People toEdit(Integer id);

    List<People> getAllFDY();
}
